package com.wgy.day10.面向对象;

/**
 * Created by pc on 2020/11/6 22:24
 * Description: LearningJava
 */
public class Demo05PhoneReturn {
    public static void main(String[] args) {
        System.out.println(getPhone());
        Phone  two=getPhone();
        System.out.println(two.brand);
        System.out.println(two.color);
        System.out.println(two.price);
        System.out.println(getPhone().brand);

    }

    public static Phone getPhone(){
        Phone one=new Phone();
        one.brand="苹果";
        one.color="土豪金";
        one.price=8333.0;
        return one;
    };



}
